/** 
 * @(#)Periodic.java 05.09.97 Robert Denda & Didier Gutacker
 */

/**
 * @author Robert Denda&Didier Gutacker
 * @version 1.0
 * @see PeriodicSender
 * @see PeriodicSenderRIP
 * @see PeriodicUpdateSender 
 */

/**
 *
 * original author Robert Denda, changes made by Didier Gutacker
 */

public abstract class Periodic implements Runnable{
  Thread timer;

  synchronized public void suspend() {
    timer.suspend();
  } // Periodic.suspend

  synchronized public void resume() {
    timer.resume();
  } // Periodic.resume

  synchronized public void stop() {
    timer.stop();
  } // Periodic.stop
 
  synchronized public void finishUp() {
    stop();
    timer = null;
  } // Periodic.finishUp

} // Periodic
